<?php

namespace app\admin\model;

use think\Model;

class PurchaseProductModel extends BaseModel
{
    protected $name = 'purchase_product';
    protected $pk = 'id';


    public function sku()
    {
        return $this->belongsTo(ClassifyModel::class, 'sku_id', 'id');
    }

    public function customer(){
        return $this->belongsTo(CustomerModel::class);
    }
}
